package com.shopping.service;

import com.shopping.pojo.Cart;
import com.shopping.pojo.vo.ProductCartInfo;
import com.shopping.pojo.vo.ProductInfo;

import java.util.List;

public interface CartService {
    public Cart isCart(Integer userId,Integer productId,Integer  specId);
    public boolean insertCart(Cart cart);
    public boolean updateCartNumInc(Integer cartId);
    public boolean updateCartNumDec(Integer cartId);
    public boolean deleteCart(Integer cartId);
    List<ProductCartInfo> selectCartByUserId(Integer userId,String productName);
}
